using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace project
{
    public partial class Main_Form : Form
    {
        public Main_Form()
        {
            InitializeComponent();
           // Program.Invoke(this, "project.Mag_Report");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Program.SaveAndInvoke("MainForm", this, "project.BuyMagazine");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Program.SaveAndInvoke("MainForm", this, "project.SellMagazine");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Program.SaveAndInvoke("MainForm", this, "project.AddStock");

        }

        private void button4_Click(object sender, EventArgs e)
        {
            Program.SaveAndInvoke("MainForm",this,"project.ReportHome");
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Program.SaveAndInvoke("MainForm", this, "project.MasterHome");
        }

        private void Main_Form_Enter(object sender, EventArgs e)
        {
            
        }

        private void Main_Form_Focus(object sender, EventArgs e)
        {
            Form3.purchase_list.Clear();
            Form3.magazine_list.Clear();
            Form3.pub_receipt = null;
            Form3.retailer_purchaselist.Clear();
        }

        private void Main_Form_MouseMove(object sender, MouseEventArgs e)
        {
            Main_Form_Focus(sender, e);
        }
    }
}